package com.njue.mis.view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class MainAction
{
	public static ActionListener clickCustomerInfoManager()
	{

		return new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				CustomerFrame customerFrame = new CustomerFrame();
				MainFrame.getMainFrame().getContentPane().add(customerFrame);
				customerFrame.setVisible(true);
			}
		};
	}

	public static ActionListener clickGoodsInfoManager()
	{
		return new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				GoodsFrame goodsFrame = new GoodsFrame();
				MainFrame.getMainFrame().getContentPane().add(goodsFrame);
				goodsFrame.setVisible(true);
			}
		};
	}

	public static ActionListener clickProviderInfoManager()
	{
		return new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				ProviderFrame privoderFrame = new ProviderFrame();
				MainFrame.getMainFrame().getContentPane().add(privoderFrame);
				privoderFrame.setVisible(true);
			}
		};
	}

	
}
